Nav Item Link "Home" => "Home", "Browse Resources" => "BrowseResources", "Get Recommendations" => "RecommendResources", "About" => "About", "Help" => "help/collections" ]; # whether to display specific items in the primary navigation # (if right side is TRUE, item will be displayed) $SysConfig = SystemConfiguration::getInstance(); $PrimaryNavExclusions = [ # Nav Item Link => Whether to Display (boolean) "BrowseResources" => BrowseableTreeFieldExists(), "RecommendResources" => $SysConfig->getBool("ResourceRatingsEnabled"), ]; # tooltips to be displayed on primary navigation items $PrimaryNavTooltips = [ # Nav Item Label => Nav Item Tooltip "Get Recommendations" => "What is a recommendation? A recommendation is the suggestion of a resource or resources that you may find interesting and useful.These suggestions are based on the ratings you have given to other resources.If you have not rated any resources, the system will not be able to provide any recommendations.You must be logged in in order to receive recommendations. Why don't I get any recommendations? In order for the portal to provide recommendations, you need to rate some resources first (roughly three to five, depending on the number of ratings that the resource record has from other users).Once you rate these resources, the portal will provide you with recommendations. How can I make the recommendations feature work better for me? To maximize the usefulness of these recommendations, you should rate all the resources you use in a thoughtful manner.Random ratings will skew recommendations and diminish usefulness.The more resources you rate, the more tailored to your needs the recommendations will become. Why can't I see any recommendations? In order to see your preferences and recommendations, you need to log in to the portal using your username and password and have rated some resources." ]; # Metadata Tool menu items (in display order) # retrieve user currently logged in $User = User::getCurrentUser(); $Schema = new MetadataSchema(MetadataSchema::SCHEMAID_DEFAULT); $MDTNavItems = [ # Nav Item Label => Nav Item Link "Add New Resource" => str_replace('$ID', "NEW", $Schema->editPage()), "Add New Controlled Name" => "index.php?P=AddControlledName", "Edit Controlled Names" => "index.php?P=EditControlledName&FieldId=0", "Edit Option Lists" => "index.php?P=EditOptionList", "Add/Edit Classifications" => "index.php?P=EditClassifications", "Metadata Field Editor" => "index.php?P=DBEditor" ]; # whether to display specific items in the MetadataTool navigation # (if right side is TRUE, item will be displayed) $MDTNavExclusions = [ # Nav Item Link => Whether to Display (boolean) str_replace('$ID', "NEW", $Schema->editPage()) => $Schema->AuthoringPrivileges()->MeetsRequirements($User), "index.php?P=AddControlledName" => $User->HasPriv(PRIV_NAMEADMIN), "index.php?P=EditControlledName&FieldId=0" => $User->HasPriv(PRIV_NAMEADMIN), "index.php?P=EditOptionList" => $User->HasPriv(PRIV_NAMEADMIN), "index.php?P=EditClassifications" => $User->HasPriv(PRIV_CLASSADMIN), "index.php?P=DBEditor" => $User->HasPriv(PRIV_SYSADMIN, PRIV_COLLECTIONADMIN) ]; # pages that should not be indexed by search engines $NoIndexPages = [ "AdvancedSearch", "ForgottenPassword", "LeaveFeedback", "Login", "RequestAccount", "SearchResults", ]; # ----- MAIN ----------------------------------------------------------------- # (NOTE: there must not be any whitespace in HTML output before the DOCTYPE) ?>
" /> GetPageName(), $NoIndexPages) ? '' : '' ?> IncludeUIFile(["jQuery.js", "jquery-migrate.js"]); ?> getBool("IncrementalKeywordSearchEnabled")) { $AF->IncludeUIFile("jquery-ui.css"); } # NOTES: # * this will also pull in -Override versions of any of the # listed files (e.g.CW-Theme-Override.css) if available # * normally -Override files should be used for modifications in # custom interfaces # * for.css files, a.scss file will also be searched for, and # compiled and loaded instead of the.css if available $CoreUIFiles = [ "CWIS.css", "CW-Theme.css", "CW-Theme.js", "CW-Generic.css", "CW-Generic.js", "CW-Legacy.css", "CW-Legacy.js", "CW-Confirm.js", ]; foreach ($CoreUIFiles as $CoreUIFile) { if ($AF->gUIFile($CoreUIFile)) { $AF->includeUIFile($CoreUIFile); } } ?>
IncludeUIFile(["CW-Base.js"]); if ($SysConfig->getBool("AddAWStatsScript")) { $AF->IncludeUIFile("awstats_misc_tracker.js"); } $AF->SignalEvent("EVENT_IN_HTML_HEADER"); ?>
Skip Navigation

# getString("PortalName") ?>

Keyword Search: getBool("IncrementalKeywordSearchEnabled")) { $AF->RequireUIFile("jquery-ui.js"); $AF->RequireUIFile("CW-QuickSearch.js"); ?>
" alt="Go" />
Advanced Search
$Link) { if (isset($PossibleExclusions[$Link]) && !$PossibleExclusions[$Link]) { unset($Items[$Label]); } } # signal event to give plugins etc a chance to modify nav item list if ($Event !== null) { $SignalResult = $GLOBALS["AF"]->SignalEvent($Event, ["NavItems" => $Items]); $Items = $SignalResult["NavItems"]; } # display nav items foreach ($Items as $Label => $Link) { if (preg_match("/^[a-zA-Z0-9_]+$/", $Link)) { $Link = "index.php?P=".$Link; } if (isset($Tooltips[$Label])) { $DisplayFunc($Link, $Label, $Tooltips[$Label]); } else { $DisplayFunc($Link, $Label); } } } /** * Display the passed navigation menu item. * * This method uses the passed nav item's information to construct an anchor * element that will then be displayed as a navigation menu item. * * @param array $Link The destination to go to when the navigation item is clicked. * @param string $Label The navigation item's label. (i.e. Display text) * @param array $Tooltip The navigation item's tooltip. (OPTIONAL) */ function DisplayPrimaryNavItem($Link, $Label, $Tooltip = null) { ?>
" class="cw-go-link" alt="" height="12" width="12">
GetFields(MetadataSchema::MDFTYPE_TREE) as $Field) { # do not display fields with a bad status if ($Field->Status() != MetadataSchema::MDFSTAT_OK) { continue; } # do not display disabled fields if (!$Field->Enabled()) { continue; } # field that the user shouldn't view if (!$Field->ViewingPrivileges()->MeetsRequirements($User)) { continue; } return true; } return false; }